<%#
kind: PXELinux
name: PXELinux default local boot
model: ProvisioningTemplate
description: |
  The template to render PXELinux bootloader configuration for provisioned hosts,
  that still boot from the network.
  Hosts are instructed to boot from the first local medium.
  Do not associate or change the name.
-%>
<% if @host.architecture.to_s.match(/s390x?/i) -%>
# pxelinux
# Reboot dracut image must be manually built and copied over to the TFTP
# https://github.com/lzap/dracut-reboot-s390x
default reboot
label reboot
kernel kernel-reboot.img
initrd initrd-reboot.img
# Uncomment to customize chreipl arguments
#append rd.shell rd.chreipl=ccw rd.chreipl=0.0.0000XXX
<% else -%>
UI menu.c32
MENU TITLE Booting local disk (ESC to stop)
TIMEOUT 200
ONTIMEOUT <%= global_setting("default_pxe_item_local", "local_chain_hd0") %>
DEFAULT <%= global_setting("default_pxe_item_local", "local_chain_hd0") %>

<%= snippet "pxelinux_chainload" %>
<% end -%>
